<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Test Case for Issue #3596</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<script type="text/javascript">
function onExecuteTest()
{
    func1(10, 20, 30);
}

function func1(a, b, c)
{
    func2();
}

function func2()
{
    debugger;
}
</script>
</head>
<body>

<h1>Issue #3596</h1>

<p>This test-case is intended for <a href="http://code.google.com/p/fbug/issues/detail?id=3596">Issue #3596</a>
- <span class="h3">Stack trace forgets where it is</span>.
<br/>
<i>Jan Odvarko, odvarko@gmail.com</i>
</p>

<ol>
<li>Open Firebug and enable the Script panel.</li>
<li>Click on the <code style="color:green">Execute Test</code> button below.</li>
<li>The debugger should break at line 18</li>
<li>Switch to the <i>Stack</i> (side) panel and expand the <i>func1</i> stack frame.</li>
<li>Switch to the <i>Watch</i> (side) panel and back.</li>
<li>The <i>func1</i> stack frame must be still expanded.</li>
<li>Select the <i>onExecuteTest</i> frame, switch to the <i>Watch</i> (side) panel and back.</li>
<li>The <i>onExecuteTest</i> stack frame must be still selected.</li>
</ol>

<button id="testButton" onclick="onExecuteTest()">Execute Test</button>

</body>
</html>
